<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">
	
	var a = 'SASKDLAJSDLA';
	//sAsK...
	//2 
	//i%2 ==0;
	//alert(a.toLowerCase());
	var b = '';

	for(var i =0;i < a.length;i++){

		if(i%2==0){
			b+=a.charAt(i).toLowerCase();
			//b = s
			//sA += s
		}
		else{
			b+=a.charAt(i);
			//s+=A //sA
			//sAs +=K
		}
		//0 =S s
		//1 =A
		//2 =S s
		//3 =K
		//4 =D d
	}
	alert(b);

	
</script>
</body>
</html>